steam_clear_achievement

语法:

steam_clear_achievement(ach_name);


参数 描述
ach_name The name of the achievement to clear (string).


返回: N/A(无返回值)


描述

With this function you can tell the Steam API to clear (reset) a specific achievement. The achievement should have been previously defined on the Steamworks control panel accounts page for your game and the string that is passed to the function should match that used as the API Name on the control panel.


例如:

if mouse_check_button_pressed(mb_left)
   {
   steam_clear_achievement("Ach_Game_Win");
   steam_clear_achievement("Ach_Died_10_Times");
   steam_clear_achievement("Ach_Killed_100_Enemies");
   steam_clear_achievement("Ach_Beat_Boss_Level_1");
   }

The above code will reset the achievements of the game when the user clicks the left mouse button.